<template>
  <div class="ant-store-comments">
    <div class="comments-user">
      <div class="comments-pic">
        <img :src="data.headimg" alt="">
      </div>
      <div class="comments-name">
        {{data.nickname}}
      </div>
      <i-rate count="5" size="16" :value="data.goods_rank">{{data.goods_rank}}.0</i-rate>
    </div>
    <div class="comments-info">
      <p class="comments-date">
        {{data.add_time}}
      </p>
    </div>
    <div class="comments-content">
      <p>{{data.content}}</p>
    </div>
  </div>
</template>

<script>
  import {
    getDate
  } from '@/utils/index'
  export default {
    props: ['data'],
    computed: {

    },
    mounted() {
      console.log(this.data)
    },
  };

</script>

<style lang="less">
  .ant-store-comments {
    position: relative;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    width: 100%;

    .comments-user {
      display: flex;
      align-items: center;
    }

    .comments-user {
      .comments-pic {
        width: 28px;
        height: 28px;
        margin-right: 6px;
        background: #F9F9F9;
        border-radius: 50%;

        img {
          width: 28px;
          height: 28px;
        }
      }

      .comments-name {
        font-size: 14px;
        font-family: PingFang-SC-Regular;
        color: rgba(51, 51, 51, 1);
        margin-right: 20px;

      }
    }

    .comments-info {
      margin-top: 12px;

      .comments-date {
        font-size: 12px;
        color: rgba(160, 160, 160, 1);
      }

    }


    .comments-content {
      margin-top: 10px;
      display: block;
      p {
        display: block;
        font-size: 14px;
        color: rgba(51, 51, 51, 1);
        line-height: 18px;
      }
    }


  }

</style>
